package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class Answer {
    //分数
    private Long score;
    //序号
    private Integer sequence;

    private String question;

    private Integer type;

    private Boolean judgeAnswer;

    private List<String>choices;

    private List<String> answers;

    public String getRight(){
        String str="";
        for (String answer : answers) {
            answer=answer.substring(0,answer.indexOf("."));
            str+=answer;
        }
        return str;
    }
}
